package com.dao.impl;

import com.dao.ChartDao;
import com.entity.Chart;
import com.mapper.ChartMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 操作mysql中的查询 得到排行榜需要的数据
 */
@Repository
public class ChartDaoImpl implements ChartDao {
    @Resource
    ChartMapper chartMapper;
    public List<Chart> getCountMemberChartByMbcost(){
      return  chartMapper.getCountMemberChartByMbcost();
    }
}
